// 订单商品
export type OrderGoodsList = {
  goodsName: string;
  price: number;
  amount: number;
  totalPrice: string; // 总价
  discountPrice: number;
  totalDiscountPrice: number; // 折后总价
  goodsSpec: string; // 商品描述
  goodsImg: string;
  goodsId: string;
  stepNum?: number;
};
// 订单类型
export type OrderList = {
  orderId: string | number;
  afterSaleFlag: string;
  orderPrice: string;
  orderReceivePrice: string;
  supplierName: string;
  orderGoodsList: OrderGoodsList[];
  orderStatus: string;
  trackingNumber: string; // 物流单号
};

// 售后详情
export type AfterDetailData = {
  supplierName: string;
  orderCode: string;
  backRemark: string;
  createTime: string;
  backCheck: string;
  refuseReason: string;
  backShippingAddress: string;
  backShippingPerson: string;
  backShippingMobile: string;
  backPayProof: string;
  payProof: string;
  orderId: string;
};
// 售后商品
export type BackGoodsList = {
  id: string;
  backGoodsId: string;
  orderId: string;
  backOrderId: string;
  backGoodsPrice: number;
  amount: number;
  unit: string;
  goodsSpec: string; // 商品描述
  totalPrice: number;
  goodsName: string;
  goodsImg: string;
  backDiscountPrice: number;
  totalDiscountPrice: number; // 折后总价
};
// 售后历史
export type BackHistoryList = {
  id: string | number;
  backHistoryId: string;
  backOrderId: string;
  historyType: string;
  createTime: string;
  historyVal: {
    applyReason: string;
    trackingNumber: string;
    backPayProof: string;
    remark: string;
  };
};

/** 个人信息类型 */
export type UserInfoData = {
  [key: string]: any; // 添加索引签名
  customerName: string; // 企业名称
  organizingInstitutionCode: string; // 组织机构代码
  legalPersonName: string; // 法人姓名
  legalPersonIdNumber: string; // 法人身份证号
  legalPersonCardPictureObverse: { url: string }[]; // 法人身份证正面
  legalPersonCardPictureReverse: { url: string }[]; // 法人身份证反面
  legalPersonCardStartDate?: string; // 开始时间
  legalPersonCardEndDate?: string; // 开始时间
  contactMan: string; // 联系人
  contactPhone: string; // 联系人电话
  registeredAddress: string; // 注册地址
  taxpayerId: string; // 纳税人识别号
  depositBank: string; // 开户行
  bankAccount: string; // 银行账户
};

/** 证件信息类型 */
export type CertificateList = {
  [key: string]: any; // 添加索引签名
  id: string;
  customerQualificationId: string;
  customerId: string;
  qualificationType: string; // 证件类型
  qualificationCode: string; // 证件编号
  effectiveDate: string;
  expiredDate: string;
  qualificationImg: { url: string }[];
  createTime: string;
};
